<% unless @cart.cart_items.blank? %>
  <div class="box box-h14">
    <span class="top_bg"><span></span></span>
    <div class="head"><h3>我的购物车</h3></div>
    <div class="con">
      <div class="cart_item_list">
        <% if flash[:cart_notice] %>
          <%= render :partial => "cart/cart_notice" %>
        <% end %>
        <ul>
          <%= render :partial => "cart/item", :collection=> @cart.cart_items %>
        </ul>
        <p id="cart_total" class="msg"><strong class="ok">总价: <%= number_to_currency @cart.total,:unit=>"￥",:precision=>2 %></strong></p>
        <p><%= clear_cart_link "清空购物车","btn"%>
        <%= link_to "结算中心",new_order_path,:class=>"btn"%></p>
      </div>
    </div>
    <span class="bot_bg">
      <span></span>
    </span>
  </div>
<% end %>
